writing output file opening output file doing standard put file reading resource data reading resource length reading resource map reading resource file header opening input file doing standard get file